﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VentaElectrodomesticos.GUI.Validaciones
{
    class RTHelper
    {
        System.Windows.Forms.RichTextBox rtError { get; set; }

        public RTHelper(System.Windows.Forms.RichTextBox rTextBox)
        {
            this.rtError = rTextBox;
        }

        internal void writeError(string error)
        {
            this.rtError.SelectionColor = System.Drawing.Color.DarkRed;
            this.rtError.SelectionFont = new System.Drawing.Font("serif", 12, System.Drawing.FontStyle.Regular);
            this.rtError.AppendText(error + System.Environment.NewLine);
        }
    }
}
